package com.wcarmon.life.control {

	import com.adobe.cairngorm.control.FrontController;
	import com.wcarmon.life.command.*;
	import com.wcarmon.life.event.*;

	public class LifeController extends FrontController {

		public function LifeController() {
			doInit();
		}
		private function doInit() : void {
			addCommand( CompleteBlockEvent.EVENT_COMPLETE_BLOCK, CompleteBlockCommand );			
			addCommand( CompleteReviewEvent.EVENT_COMPLETE_REVIEW, CompleteReviewCommand);			
			addCommand( CreateBlockEvent.EVENT_CREATE_BLOCK, CreateBlockCommand);			
			addCommand( DoImapImportEvent.EVENT_IMAP_IMPORT, DoImapImportCommand );			
			addCommand( GetBlockForProcessingEvent.EVENT_PROCESS_BLOCK, GetBlockForProcessingCommand);			
			addCommand( RejectBlockEvent.EVENT_REJECT_BLOCK, RejectBlockCommand );			
			addCommand( SaveBlockEvent.EVENT_SAVE_BLOCK, SaveBlockCommand );			
			addCommand( SaveBlockFieldEvent.EVENT_SAVE_BLOCK_FIELD ,SaveBlockFieldCommand );			
			addCommand( SearchEvent.EVENT_SEARCH, SearchCommand );			
			addCommand( ShowCollectEvent.EVENT_SHOW_COLLECT, ShowCollectCommand );			
			addCommand( ShowDashboardEvent.EVENT_SHOW_DASHBOARD, ShowDashboardCommand );			
			addCommand( ShowDoEvent.EVENT_SHOW_DO, ShowDoCommand );			
			addCommand( ShowIdleProjectsEvent.EVENT_SHOW_IDLE_PROJECTS, ShowIdleProjectsCommand);			
			addCommand( ShowOrganizeEvent.EVENT_SHOW_ORGANIZE, ShowOrganizeCommand );			
			addCommand( ShowOrganizeListEvent.EVENT_SHOW_ORGANIZE_LIST, ShowOrganizeListCommand );			
			addCommand( ShowOrganizeTreeEvent.EVENT_SHOW_ORGANIZE_TREE, ShowOrganizeTreeCommand );			
			addCommand( ShowOrganizeZoomEvent.SHOW_ORGANIZE_EVENT_ZOOM, ShowOrganizeZoomCommand );			
			addCommand( ShowProcessEvent.EVENT_SHOW_PROCESS, ShowProcessCommand);  			
			addCommand( ShowReviewEvent.EVENT_SHOW_REVIEW, ShowReviewCommand);			
			addCommand( ShowVersionEvent.EVENT_SHOW_VERSION, ShowVersionCommand );			
			addCommand( UnCompleteBlockEvent.EVENT_UNCOMPLETE_BLOCK, UnCompleteBlockCommand );			
			addCommand( UnRejectBlockEvent.EVENT_UNREJECT_BLOCK, UnRejectBlockCommand );			
			addCommand( UpdateDashboardBlocksEvent.EVENT_UPDATE_DASHBOARD_BLOCKS, UpdateDashboardBlocksCommand);			
			addCommand( UpdateItemsToProcessEvent.EVENT_UPDATE_COLLECT_BOX, UpdateItemsToProcessCommand);  			
			addCommand( UpdateProjectComboBoxEvent.EVENT_UPDATE_PROJECT_COMBOBOX, UpdateProjectComboBoxCommand);			
			addCommand( UpdateStatsEvent.EVENT_UPDATE_STATS, UpdateStatsCommand );			
			//addCommand( , );
			addCommand( ShowMiniCollectEvent.EVENT_SHOW_MINI_COLLECT , ShowMiniCollectCommand);
			addCommand( ShowAttachFileEvent.EVENT_SHOW_ATTACH_FILE, ShowAttachFileCommand );
			//addCommand( , );
			//addCommand( , );
			//addCommand( , );
			//addCommand( , );
			//addCommand( , );
			//addCommand( , );
			//addCommand( , );
			//addCommand( , );
			//addCommand( , );
		}
	}
}